package com.daiyang.lottery.service;

import com.daiyang.lottery.service.enums.UserIdentityEnum;
import com.daiyang.lottery.controller.param.UserLoginParam;
import com.daiyang.lottery.controller.param.UserRegisterParam;
import com.daiyang.lottery.service.dto.UserDTO;
import com.daiyang.lottery.service.dto.UserLoginDTO;
import com.daiyang.lottery.service.dto.UserRegisterDTO;

import java.util.List;

public interface UserService {
    /**
     * 注册用户
     * @param userRegisterParam
     * @return
     */
    UserRegisterDTO register(UserRegisterParam userRegisterParam);


    /**
     * 登录用户
     * 密码登录
     * 短信登录
     * @param userLoginParam
     * @return
     */
    UserLoginDTO login(UserLoginParam userLoginParam);

    List<UserDTO> findUserList(UserIdentityEnum identity);
}
